package com.walter.blog.business.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.walter.db.pojo.User;

/**
 * @author: wuchenxi
 * @date: 2020/8/7 17:45:45
 */
public interface UserService extends IService<User> {

    /**
     * 验证当前邮箱是否已经被注册
     *
     * @param mail
     * @return
     */
    int countByMail(String mail);

    User getByAccountAndPassword(String accountOrMail, String password);
}
